package cn.shun.mapper;

import cn.shun.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>Project: MyBatis2023 - BookMapper
 * <p>Powered by yishun On 2023-02-03 14:02:36
 *
 * @author yishun [2465734101@qq.com]
 * @version 1.0
 * @since 17
 */
@Mapper
public interface BookMapper {
    @Select("select * from book")
    List<Book> selectAll();
    @Select("select * from book where id=#{id}")
    int queryById(int id);
}
